package com.tlgen.orm.domain;

import com.tlgen.orm.annotation.FieldName;
import com.tlgen.orm.annotation.ParentId;
import com.tlgen.orm.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysDept extends BaseEntity {

    @FieldName("dept_name")
    private String deptName;

    @ParentId
    @FieldName("parent_id")
    private String parentId;

    private List<SysDept> children;

}
